package com.xiaohui.home;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(value = "com.xiaohui")
@MapperScan(value = "com.xiaohui.*.dao")
@EnableCaching
//@RibbonClient(name = "frame-cloud-sku", configuration = CustomRule.class)
@EnableFeignClients(basePackages = "com.xiaohui.feigin.service")
@EnableHystrix
public class HomeApplication {
    public static void main(String[] args) {
        SpringApplication.run(HomeApplication.class);
    }
}
